package com.rockcent.mall.lib.repository;

import com.rockcent.common.common.PageResult;
import com.rockcent.mall.lib.dto.ChannelProductDto;
import com.rockcent.mall.lib.dto.ProductDto;

import java.util.List;

/**
 * Created by zhangjh on 2016/10/26.
 */
public interface ChannelProductRepositoryCustom {

    PageResult<ProductDto> listProductByMerchantIdAndMallIdAndChannelId(Long merchantId, Long mallId, Long channelId, String scope, PageResult pageResult);

    PageResult<ChannelProductDto> findByChannelIdAndScope(Long channelId, String productName, String scope,PageResult pageResult);

    Long productCountByChannelId(Long channelId);
}
